package codetop.microsoft.T1095;

/**
 * @Author: 18362
 * @Create: 2022-09-11 14:37:51 星期日
 */
public class MountainArrayImpl implements MountainArray {

    private int[] arr;

    public MountainArrayImpl() {
    }

    public MountainArrayImpl(int[] arr) {
        this.arr = arr;
    }

    @Override
    public int get(int index) {
        return arr[index];
    }

    @Override
    public int length() {
        return arr.length;
    }
}
